
/*
 *    SSCatalystAppController.h
 *  MESLib
 * 
 * Copyright 2003-2009 Starline Software Ltd
 * 
 * This file is part of MESLib.
 * 
 * MESLib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MESLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with MESLib. If not, see <http://www.gnu.org/licenses/>.
 */
//  Created by Tobias Haughton on Fri Jan 24 2003.
//  

#import <Cocoa/Cocoa.h>
#import "SSPreferenceController.h"
#import "SSInspectorController.h"
#import "SSNeedsDiamondsPanelController.h"
#import "SSEBPanelController.h"
#import "SSJumpMapPanelController.h"
#import "SSSharedNewEBPanelController.h"
#import "SSCommentPanelController.h"
#import "SSMatrixPropertiesPanel.h"
#import "SSObjectFilterPanelController.h"
#import "SSDiamondLabelPanelController.h"
#import "SSRulesPanelController.h"
#import "SSNewDocController.h"
#import "SSSerialNumberPanelController.h"
#import "esellerate.h"
#import "validate.h"
#import "SSPoisonWordPanelController.h"

@interface SSCatalystAppController : NSObject {
   IBOutlet id imageTypePopUp;
   IBOutlet id glossaryTypePopUp;
   IBOutlet id glossarySavePanelAccessoryView;
   IBOutlet id imageSavePanelAccessoryView;
   IBOutlet id titleBoxMenuItem;
   IBOutlet id jumpMapInChartMenuItem;
   IBOutlet id jumpMapInWindowMenuItem;
   IBOutlet id jumpMapNoDisplayMenuItem;
   SSPreferenceController *preferenceController;
   BOOL hasLaunched;
   BOOL openPanelHasBeenLaunched;
   int lastJumpMapDisplayStyle;
   NSTimer *backupTimer;
   NSString *ESDSerialNumber;
   BOOL registered;
}

- (IBAction)newDoc:(id)sender;

- (IBAction)exportImage:(id)sender;
- (IBAction)exportGlossary:(id)sender;
- (IBAction)exportRemarkList:(id)sender;
- (IBAction)exportEventList:(id)sender;
- (IBAction)exportCommentList:(id)sender;
- (IBAction)exportDiamondList:(id)sender;
- (IBAction)showPreferencePanel:(id)sender;
- (IBAction)showInspectorPanel:(id)sender;
- (IBAction)showDiamondPanel:(id)sender;
- (IBAction)showNewEBPanel:(id)sender;
- (IBAction)showEBPanel:(id)sender;
- (IBAction)showCommentPanel:(id)sender;
- (IBAction)showJumpMapPanel:(id)sender;
- (IBAction)showMatrixPropertiesPanel:(id)sender;
- (IBAction)showObjectFilterPanel:(id)sender;
- (IBAction)showOverlapScaleAndRangePanel:(id)sender;
- (IBAction)showDiamondLabelPanel:(id)sender;
- (IBAction)showRulesPanel:(id)sender;
- (IBAction)showSerialNumberPanel:(id)sender;
- (IBAction)showPoisonWordsPanel:(id)sender;
- (IBAction)changeTitleBoxDisplay:(id)sender;
- (IBAction)changeJumpMapDisplay:(id)sender;
- (IBAction)snapChartToTimes:(id)sender;
- (IBAction)snapTimesToChart:(id)sender;
- (IBAction)importFiles:(id)sender;
- (IBAction)addDiamond:(id)sender;
- (IBAction)addComment:(id)sender;
- (IBAction)zoomIn:(id)sender;
- (IBAction)zoomOut:(id)sender;
- (IBAction)zoomOverlapIn:(id)sender;
- (IBAction)zoomOverlapOut:(id)sender;
- (IBAction)switchViewType:(id)sender;

- (IBAction)openFastStartTutorial:(id)sender;
- (IBAction)openIncidentInvestigationTutorial:(id)sender;
- (IBAction)openHazardAnalysisTutorial:(id)sender;
- (IBAction)openQualityAssuranceTutorial:(id)sender;
- (IBAction)openWitnessAnalysisTutorial:(id)sender;
- (IBAction)openChangeManagementTutorial:(id)sender;
- (IBAction)openRecommendationDevelopmentTutorial:(id)sender;


- (void)setBackupTimer;
- (void)backupOpenFiles:(NSTimer *)timer;

- glossarySavePanelAccessoryView;
- imageSavePanelAccessoryView;

- (void)setExpirationDetails;
- (void)validateExpirationDetails;

- (BOOL)isRegistered;


- (void)installEngine;
- (void)updateSN;
- (void)activate;
- (IBAction)menuPurchase:(id)sender;
- (BOOL)isValidSerialNumber:(NSString *)serial;
- (BOOL)isSerialNumberActivated:(NSString *)serial;

@end
